
package com.sskj.jkzx.repository;

import org.springframework.data.jpa.repository.Query;

import com.sskj.core.repository.GenericRepository;
import com.sskj.jkzx.domain.entity.quantity.SgxkQuantity;

public interface SgxkQuantityRepository
		extends GenericRepository<SgxkQuantity, String> {

	@Query(value = "select * from jkzx_sgxk_quantity t order by t.created_time desc,t.tj_year desc limit 1",
			nativeQuery = true)
	SgxkQuantity findLastOne();
}
